package simulator;
import java.io.*;

public class Assembler {
	public static void main(String[] args)		
		throws IOException{
			BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
			new InputStreamReader(System.in);
			String s,n="";
			while((s = stdin.readLine())!=null&&s.length()!=0){
				n+=s;
				System.out.println(n);
			}

		}
}


